package com.example.studyweb.controller;

import com.example.studyweb.service.RoleService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "角色管理接口", tags ="角色")
@RequestMapping("/rest/role")
@RestController
public class RoleController {
    @Autowired
    private RoleService roleService;

    @GetMapping("cc")
    public String aa() {
        return roleService.test2();
    }
}
